package cn.jarlen.jwt.tools.crypt.exception;

public class CryptOperatorException extends RuntimeException {
    private Integer code;
    private final String detail;

    public CryptOperatorException(String detail) {
        super(detail);
        this.detail = detail;
    }

    public CryptOperatorException(Integer code, String detail) {
        super(detail);
        this.code = code;
        this.detail = detail;
    }

    public String getDetail() {
        return this.detail;
    }

    public Integer getCode() {
        return this.code;
    }
}
